package practice;

public class Fish extends Animal implements Swim{
    //第一遍
    void eat() {
        System.out.println("小鱼"+name+"正在吃虾米！");
    }
    public void swim() {
        System.out.println("小鱼"+name+"正在游泳");
    }

    Fish(String name,int age,String color) {
        super(name,age,color);
    }

    //第二遍
//    void eat() {
//        System.out.println("大鱼"+name+"正在吃虾,别打扰！");
//    }
//    public void swim() {
//        System.out.println("大鱼"+name+"正在游泳，别打扰！");
//    }
//
//    Fish(String name,int age,String color) {
//        super(name,age,color);
//    }
}
